package com.os.sys.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix="system") //接收application.yml中的myProps下面的属性
//@PropertySource(value = "classpath:/application.yml")
@Data
public class MyProps {
    //public String imageUrl;
    @Value(value = "${system.path_base}")
    public String path_base;

}